package com.hy.${packageCode}.shared.distribute.election;

public interface DistLeaderElection {
    boolean isLeader();

    void addListener(ElectionListener electionListener);

    void removeListener(ElectionListener electionListener);

    interface ElectionListener {
        void gotLeader();

        void loseLeader();
    }
}
